#include "SparkEditorToolBarFile.h"


SparkEditorToolBarFile::SparkEditorToolBarFile()
	: SparkEditorToolBar()
{

}

SparkEditorToolBarFile::SparkEditorToolBarFile(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
	: SparkEditorToolBar(parent, id, pos, size, style)
{
	SetToolBitmapSize(wxSize(32, 32));

	wxBitmap NewBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/ogscene.png"));
	AddTool(IDTOOLBAR_FILE_NEW, wxT("New"), NewBitmap);

	wxBitmap OpenBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/fileopen.png"));
	AddTool(IDTOOLBAR_FILE_OPEN, wxT("Open"), OpenBitmap);

	wxBitmap SaveBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/filesave.png"));
	AddTool(IDTOOLBAR_FILE_SAVE, wxT("Save"), SaveBitmap);

	wxBitmap SaveAsBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/filesaveas.png"));
	AddTool(IDTOOLBAR_FILE_SAVEAS, wxT("SaveAs"), SaveAsBitmap);

	wxBitmap CloseBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/fileclose.png"));
	AddTool(IDTOOLBAR_FILE_CLOSE, wxT("Close"), CloseBitmap);

	Realize();
}

SparkEditorToolBarFile::~SparkEditorToolBarFile()
{

}

void SparkEditorToolBarFile::ConnectEvent(void)
{
	Connect(IDTOOLBAR_FILE_NEW, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarFile::OnToolBarNew));
	Connect(IDTOOLBAR_FILE_OPEN, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarFile::OnToolBarOpen));
	Connect(IDTOOLBAR_FILE_SAVE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarFile::OnToolBarSave));
	Connect(IDTOOLBAR_FILE_SAVEAS, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarFile::OnToolBarSaveAs));
	Connect(IDTOOLBAR_FILE_CLOSE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarFile::OnToolBarClose));
}

void SparkEditorToolBarFile::OnToolBarNew(wxCommandEvent& event)
{

}

void SparkEditorToolBarFile::OnToolBarOpen(wxCommandEvent& event)
{

}

void SparkEditorToolBarFile::OnToolBarSave(wxCommandEvent& event)
{

}

void SparkEditorToolBarFile::OnToolBarSaveAs(wxCommandEvent& event)
{

}

void SparkEditorToolBarFile::OnToolBarClose(wxCommandEvent& event)
{

}